Skip to content

ci: run mutation testing with Infection - #54

Merged
roxblnfk merged 3 commits into
1.xfrom
ci/infection
Nov 20, 2026
Merged

roxblnfk merged 3 commits into
1.xfrom
ci/infection

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What was changed

  • Infection runs on Testo through testo/bridge-infection, installed in vendor-bin/infection; composer infect runs it locally, composer infect:ci in CI.
  • It mutates src against the suites that need no database server (DB_DRIVERS=sqlite): Unit, Feature/SQLite and Regression/SQLite. CI fails below 75% MSI / covered MSI.
  • The new 🧬 Mutation Tests workflow calls the shared cycle/gh-actions Infection workflow (@feat/infection until feat(infection): add a reusable workflow for mutation testing with Infection gh-actions#18 lands) and publishes the report to the Stryker dashboard on pushes to 1.x; the README shows the badge.

Why?

Line coverage says which code the tests run, not whether they would notice it breaking; the MSI tracks that.

Checklist

  • Tested
    • Tested manually: composer infect locally on PHP 8.4, MSI 78% (100% mutation code coverage)
    • Unit tests added

@roxblnfk
roxblnfk requested a review from a team November 20, 2026 15:21
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.97%. Comparing base (8c570cb) to head (b01586e).
⚠️ Report is 1 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x      #54   +/-   ##
=======================================
  Coverage   77.97%   77.97%           
=======================================
  Files          20       20           
  Lines         445      445           
=======================================
  Hits          347      347           
  Misses         98       98           
Flag Coverage Δ
mysql 82.76% <ø> (-0.17%) ⬇️
postgres 82.93% <ø> (ø)
sqlite 82.76% <ø> (-0.17%) ⬇️
sqlserver 82.93% <ø> (ø)
unit 3.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk merged commit 8afadb7 into 1.x Nov 20, 2026
22 of 23 checks passed
@roxblnfk
roxblnfk deleted the ci/infection branch November 20, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant